<!DOCTYPE html> 
<html lang="zh-CN">
<head> 
	<meta http-equiv="X-UA-Compatible" content="IE=Edge">
	<meta charset="utf-8">
	<title></title>
	<link rel="stylesheet" type="text/css" href="${request.contextPath}/css/global.css?v=${timeStamp!''}" />
	<link rel="stylesheet" type="text/css" href="${request.contextPath}/css/dist/metroStyle/metroStyle.css" />
	<link rel="stylesheet" type="text/css" href="${request.contextPath}/css/dist/datatables.css" />
	<link rel="stylesheet" type="text/css" href="${request.contextPath}/css/system/system.css?v=${timeStamp!''}" />
	<link rel="stylesheet" type="text/css" href="${request.contextPath}/css/font.css?v=${timeStamp!''}">
	<script type="text/javascript">
		var webroot = '${request.contextPath}';
	</script>
</head>
<body>
	<div class="promiss_continer ca_container clearfix">
		<p><i class="ion ion-location"></i>当前位置：系统 <span>></span>权限管理</p>
		<div class="promiss_left_ztree">
			<div class="promiss_explain">
				<p>说明：<span>选择一条菜单，右侧会出现对应的权限列表，权限列表可以新增修改等！</span></p>
			</div>
			<!-- 菜单树 -->
			 <div class="zTreeDemoBackground left" style="width: 100%!important; font-size:12px!important;">
		        <ul id="treePer" class="ztree editZtree"></ul>
		    </div>
		</div>
		
		<div class="promiss_datatable">
			<!-- 权限表 -->
			<div class="promiss_btngroup">
			    <@shiro.hasPermission name="PERMISSION_ADD">
					<button class="cabtn cabtn_default permissopen">新增</button>
				</@shiro.hasPermission>
				<@shiro.hasPermission name="PERMISSION_EDIT">
					<button class="cabtn cabtn_default permissedit">修改</button>
				</@shiro.hasPermission>
				<@shiro.hasPermission name="PERMISSION_DEL">
					<button class="cabtn cabtn_danger permissdel">删除</button>
				</@shiro.hasPermission>
			</div>
			<table id="datatables" class="dataTable display" style="white-space:nowrap;">
				<thead>
				 	<tr>
				 		<th><input type="checkbox" class="checkall" /></th>
				 		<th>权限编号</th>
				 		<th>权限编码</th>
				 		<th>权限名称</th>
				 	</tr>
			 	</thead>
			 	<tbody>
			 	</tbody>
			</table>
		</div>
	</div>
	
	<!-- 添加/修改 -->
	<div class="permissform pagehide">
		<form id="addpermiss" class="addpermiss">
			<input type="hidden" class="treeidpara" name="sysMenuId">
			<div class="ca_formgroup">
				<label><i class="red">*</i>权限编号：</label>
				<div class="left">
					<input type="text" name="permissionIndex" id="permissionIndex" class="ca_control permissName" required>
					<span class="red"></span>
				</div>
			</div>
			<div class="ca_formgroup">
				<label><i class="red">*</i>权限编码：</label>
				<div class="left">
					<input type="text" name="permissionCode" id="permissionCode" class="ca_control permissType" required>
					<span class="red"></span>
				</div>
			</div>
			<div class="ca_formgroup">
				<label><i class="red">*</i>权限名称：</label>
				<div class="left">
					<input type="text" name="permissionName" id="permissionName" class="ca_control permissType" required>
					<span class="red"></span>
				</div>
			</div>
		</form>
	</div>
	<script type="text/javascript" src="${request.contextPath}/js/dist/jquery-2.1.4.min.js"></script>
	<script type="text/javascript" src="${request.contextPath}/js/dist/jquery.validate.js"></script>
	<script type="text/javascript" src="${request.contextPath}/js/dist/jquery.metadata.js"></script>
	<script type="text/javascript" src="${request.contextPath}/js/dist/jquery.ztree.all.js"></script>
	<script type="text/javascript" src="${request.contextPath}/js/dist/jquery.dataTables.js"></script>
	<script type="text/javascript" src="${request.contextPath}/js/dist/layer/layer.js"></script>
	
	<script type="text/javascript" src="${request.contextPath}/js/public.js?v=${timeStamp!''}"></script>
	<script type="text/javascript" src="${request.contextPath}/js/system/service.js"></script>
	<script type="text/javascript" src="${request.contextPath}/js/system/validate.js"></script>
	<script type="text/javascript" src="${request.contextPath}/js/system/permission.js?v=${timeStamp!''}"></script>
</body>
</html>